<!-- 引入模板 -->
@extends('admin/layout/index')

<!-- 主要内容 -->
@section('content')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
		<span><i class="icon-pencil"></i>用户修改</span>
	</div>
	<div class="mws-panel-body no-padding">
		<form class="mws-form" action="/admin/user/update/{{ $data['id'] }}" method='post'>
			{{ csrf_field() }}
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label class="mws-form-label">用户名</label>
					<div class="mws-form-item">
						<input type="text" class="large" name='username' placeholder="{{ $data['username'] }}">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">修改密码</label>
					<div class="mws-form-item">
						<input type="password" class="large" name='password' placeholder="请输入新密码">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">确认密码</label>
					<div class="mws-form-item">
						<input type="password" class="large" name='repassword' placeholder="再次输入新密码">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">状态</label>
					<div class="mws-form-item">
						<select name="status" id="">
							<option value="0" @if($data['status'] == 0) selected @endif>禁用</option>
							<option value="1" @if($data['status'] == 1) selected @endif>可用</option>
						</select>
					</div>
				</div>
				<div class="mws-form-row">
					<div class="mws-form-item">
						<input type="submit" value='提交'>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
@endsection